﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Media;

namespace SSSGame
{
    public class PlayerContentManager
    {
        public GraphicsDeviceManager _graphics;
        public SpriteBatch _spriteBatch;
        public SpriteFont _police;

        // Définition des textures
        public Texture2D _star;
        public Texture2D _ship;
        public Texture2D _shipBoost_main;
        public Texture2D _shipBoost_retro;
        public Texture2D _shipRotationHoraire;
        public Texture2D _shipRotationRetrograde;
        public Texture2D _orientation_poussee;
        public Texture2D _orientation_ship;

        public Texture2D _balise3;

        public SoundEffect _propulseur;
        public SoundEffectInstance _propulseurSoundInstance;

        // Sons
        //public SoundEffectInstance _propulseur;

        // Définition des paramètres de scrolling
        public Rectangle _nonScrollRectangle;
        public Vector2 _offSet;

        // Animation des balises
        public TagAnimation _tagAnimation;

        public PlayerContentManager(SSS sssGame)
        {
            //_graphics = new GraphicsDeviceManager(sssGame)
            //{
            //    PreferredBackBufferHeight = 700,
            //    PreferredBackBufferWidth = 700,
            //    IsFullScreen = false,
            //    SynchronizeWithVerticalRetrace = false,
            //};

            _graphics = new GraphicsDeviceManager(sssGame)
            {
                PreferredBackBufferHeight = 1080,
                PreferredBackBufferWidth = 1920,
                IsFullScreen = true,
                SynchronizeWithVerticalRetrace = false,
            };

            _nonScrollRectangle = new Rectangle(_graphics.PreferredBackBufferWidth / 2 - 100, _graphics.PreferredBackBufferHeight / 2 - 100, 200, 200);
            _offSet = new Vector2(0f, 0f);

            _tagAnimation = new TagAnimation(0.3f);
        }
    }
}
